Fix regexp in install scripts so it works with sed.
authorMichael.Fetterman@cl.cam.ac.uk <Michael.Fetterman@cl.cam.ac.uk>
Wed, 23 Nov 2005 13:56:43 +0000 (14:56 +0100)
committerMichael.Fetterman@cl.cam.ac.uk <Michael.Fetterman@cl.cam.ac.uk>
Wed, 23 Nov 2005 13:56:43 +0000 (14:56 +0100)
sed does not recognize \s as matching whitespace.  Fixed two installation
scripts which both assumed that it did.

install.sh
tools/check/check_hotplug [changed mode: 0644->0755]

index e7dbfc24b63d31b49c7c5179a9d41e0c5b61823f..74bc7d91b6af578f4fc5fa2aaf5fc3f6e553a3b9 100755 (executable)
@@ -28,7 +28,7 @@ cp -fdRL $src/etc/init.d/* $dst/etc/init.d/
 echo "All done."
 
 [ -x "$(which udevinfo)" ] && \
-  UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/')
+  UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\ \([0-9]\+\)[^0-9]*/\1/')
 
 if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
   cp -f $src/etc/udev/rules.d/*.rules $dst/etc/udev/rules.d/
old mode 100644 (file)
new mode 100755 (executable)
index aaedb76..ba3a80f
@@ -7,7 +7,7 @@ function error {
    exit 1
 }
 [ -x "$(which udevinfo)" ] && \
-  UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/')
+  UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\ \([0-9]\+\)[^0-9]*/\1/')
 
 if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
   exit 0